package com.sky.service.admin;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @Description DishService
 * @Author 王富贵
 * @Date 2024-10-06
 */
public interface DishService {
    Result<String> sava(DishDTO dto);

    Result<PageResult> page(DishPageQueryDTO dto);

    Result<String> deleteByIds(List<Long> ids);


    Result<DishVO> selectDishWithFlavor(Long dishId);

    void updateWithFlavor(DishDTO dishDTO);

    List<Dish> list(Long categoryId);

    List<Dish> getBySetmealId(Long categoryId);

    List<DishVO> listWithFlavor(Dish dish);
}
